package models;

import java.util.LinkedList;
import java.util.List;

import javax.persistence.*;

import org.hibernate.annotations.OnDelete;
import org.hibernate.annotations.OnDeleteAction;

import play.db.jpa.Model;

@Entity
@Table(name = "Columns")
public class BoardColumn extends Model {
	@ManyToOne
	public TaskStatus status;

	public String name;

	public int positionNumber;

	@ManyToOne
	public VirtualBoard board;

	
	/**
	 * Constructs a new BoardColumn.
	 * 
	 * @param positionNumber
	 * @param status
	 * @param name
	 * @param list
	 * @param board
	 */
	public BoardColumn(int positionNumber, TaskStatus status, String name,
			 VirtualBoard board) {
		this.status = status;
		this.name = name;
		
		this.positionNumber = positionNumber;
		this.board = board;
	}
}